package five_row;

public class LeftDown extends five_row{
	static RightUp a=new RightUp();
	public static int LeftDown(int Object, int i, int j) { // Object : 棋子类型
		int tmp = 1;
		int x = 1;
		for (; x < 6; x++) {
			i++;
			j--;
			if (arr[i][j] == Object) { // 判断是否为一种旗�?
				tmp++;
				continue;
			} else {
				break;
			}
		}
		if (tmp > 5 && Object == 1) { // 判断是否超出连续5个相同棋�?
			return 1;
		}else if(tmp >= 5 && Object == 2){
			return 0;
		}
		if (x == 6) {
			x--;
		}
		i = i - x; // 使坐标回到原�?
		j = j + x;
		int index = 6 - tmp;
		int m=a.RightUp(tmp, index, Object, i, j);
		
		return m;
	}
}
